IList
| Kind of class: | interface |
|---|---|
| Inherits from: | none |
| Classpath: | gfx.interfaces.IList |
| File last modified: | Tuesday, 29 June 2010, 09:03:27 |
Defines the methods that all List components must define. Note that this interface is not implemented by the existing components, and does not need to be implemented, it is just a reference.
Summary
Instance properties
- dataProvider
- The data model to be displayed in the component.
- selectedIndex
- Get the index of the item that is selected in a single-selection list.
- selectedIndex
- Set the index of the item that is selected in a single-selection list.
Instance methods
- scrollToIndex
- Scrolls the list to the item at the specified index.
Instance properties
dataProvider
dataProvider:Object
(read,write)
The data model to be displayed in the component. The DataProvider can be an Array or any object exposing the appropriate API.
selectedIndex
selectedIndex:Object
(read)
Get the index of the item that is selected in a single-selection list.
selectedIndex
selectedIndex:Number
(write)
Set the index of the item that is selected in a single-selection list.
Parameters:
value:
The new selected index.
Instance methods
scrollToIndex
function scrollToIndex (
index:Number) : Void
Scrolls the list to the item at the specified index. If the index is not out of range, the scroll position does not change.
Parameters:
index:
The index in the dataProvider to scroll to.